import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { permission, role } from './directive/index'
import component from '@/components/common'
import './assets/scss/index.scss'
import './assets/iconfont/iconfont/iconfont.css'
import './assets/iconfont/fontAwesome/font-awesome.css'
import './plugins/element.js'
import './router/beforeEach'
import './api/common'

Vue.prototype.$fileUrl = process.env.VUE_APP_FILE_URL
Vue.config.productionTip = false
Vue.use(component)
Vue.use(permission)
Vue.use(role)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
